package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.base.enums.IsEnableEnum;
import com.weixing.mall.provider.model.domain.LocalStore;
import com.weixing.mall.provider.model.dto.cms.LocalStoreDto;
import com.weixing.mall.provider.model.query.LocalStoreQuery;
import com.weixing.mall.provider.model.query.NearLocalStoreQuery;
import com.weixing.mall.provider.model.vo.LocalStoreEditVo;
import com.weixing.mall.provider.model.vo.LocalStoreNearVo;
import com.weixing.mall.provider.model.vo.LocalStoreVo;

/**
 * <p>
 * 实体店铺 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface ILocalStoreService extends IService<LocalStore> {

    IPage<LocalStoreVo> selectOfPage(Page page, LocalStoreQuery localStoreQuery);

    IPage<LocalStoreNearVo> selectStoreOfPage(Page page, NearLocalStoreQuery nearLocalStoreQuery);

    void save(LocalStoreDto localStoreDto);

    LocalStoreEditVo selectLocalStoreEditVoById(long id);

    void changeEnable(Long id, IsEnableEnum isEnable);
}
